﻿using LcAudit.Common.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using LcAudit.BPM.Core.Dal;

namespace LcAudit.BPM.Core.Model
{
    [TableName("bidderinfo")]
    public class bidderinfo
    {

        [Description("投标商")]
        public int KeyId
        {
            get;
            set;
        }

        [Description("投标商编号")]
        public string bbh
        {
            get;
            set;
        }

        [Description("名称")]
        public string bname
        {
            get;
            set;
        }

        [Description("地址")]
        public string badd
        {
            get;
            set;
        }

        [Description("法人代表")]
        public string blegal
        {
            get;
            set;
        }

        [Description("固定电话")]
        public string btel
        {
            get;
            set;
        }

        [Description("传真")]
        public string bfax
        {
            get;
            set;
        }

        [Description("邮箱")]
        public string bemail
        {
            get;
            set;
        }

        [Description("户籍所在地")]
        public string bhuji
        {
            get;
            set;
        }

        [Description("主要业绩")]
        public string bperformance
        {
            get;
            set;
        }

        [Description("诚信记录")]
        public string bsincerity
        {
            get;
            set;
        }

        [Description("评标参考分值")]
        public decimal bscore
        {
            get;
            set;
        }

        [Description("手机")]
        public string bphone
        {
            get;
            set;
        }

        [Description("股东名单")]
        public string bshareholders
        {
            get;
            set;
        }

        [Description("注册资本")]
        public decimal bcapital
        {
            get;
            set;
        }

        [Description("资质")]
        public string bqualifications
        {
            get;
            set;
        }

        [Description("经营范围")]
        public string bmanagement
        {
            get;
            set;
        }

        [Description("代理人")]
        public int aid
        {
            get;
            set;
        }

        [Description("项目经理")]
        public int mid
        {
            get;
            set;
        }

        [Description("公司成立时间")]
        public DateTime bdatetime
        {
            get;
            set;
        }

        [Description("输入时间")]
        public DateTime binputtime
        {
            get;
            set;
        }
        [DbField(false)]
        public agentinfo Agent
        {
            get { return agentinfoDal.Instance.Get(aid); }
        }
        [DbField(false)]
        public managerinfo Manager
        {
            get { return managerinfoDal.Instance.Get(aid); }
        }
    }
}
